/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package suncertify.db;

/**
 *A Type of <code>Exception</code> indicating that the record searched for could not be found
 * @author Paul Wilhelm
 */
public class RecordNotFoundException extends Exception{

	private static final long serialVersionUID = 1981;			//UID that is verified during deserialization
	private String message;										//The default message to be shown when the Exception is thrown
	
	/**
	 * Regular Constructor.  Calls the String constructor and passes
	 * it a default message value.
	 */
    public RecordNotFoundException(){
        this("Sorry, but your record could not be found.  \n" +
        		"Remember that the search criteria is case-sensitive.");
    }
    
    /**
     * String constructor that takes a customizable String to set as the message
     * of the Exception.
     * @param message - The message to be displayed when the Exception is thrown
     */
    public RecordNotFoundException(String message){
        this.message = message;
    }
    
    /**
     * Gets the message of the <code>RecordNotFoundException</code>.
     * @return The Message that the Exception should display
     */
	public String getMessage() {
		return message;
	}
}
